-----------------------------------------------------------------------------------------------------------------------------------------
--处理windows copy
-----------------------------------------------------------------------------------------------------------------------------------------
local path = os.getenv("LLMKDIR_OPTION")
if nil == path or "" == path then
	print("Usage:")
	print("llcopy <src> <dist>")
	os.exit(0)
end
globalStrLLMakeHomePath = os.getenv("LLMAKE_HOME")
if nil == globalStrLLMakeHomePath then
	print("LLMake Home Path is not set ,Please set it")
	os.exit(-1)
end
package.path = package.path..";"..globalStrLLMakeHomePath.."/script".."/?.lua"
require("CommonUtilities")
local fileTable = parseString2Token(path," ")
local fileStringTable ={}
for i,v in pairs(fileTable) do
	table.insert(fileStringTable,"\""..v.."\"")
end
local winPath = table.concat(fileStringTable," ")
winPath = string.gsub(winPath,"/","\\")
print(winPath)
os.execute("copy /Y /V "..winPath)
